<?php $this->_extends('_layouts/default_layout'); ?>

<?php $this->_block('title'); ?>注册witpn帐户<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

<?php if(isset($content)): echo $content; else: ?>

<div id="register">
<form action="<?=url("user/register") ?>" method="POST">
	<span style="font-size: 15px; font-weight: bold; float:left; padding-top: 5px">注册您的witpn帐户</span><br />
	<table style="clear:left">
			<tr>
				<th style="width: 8em"><label for="username" >用户名</label></th>
				<td><input autocomplete="off" value="<?php if(isset($_POST['username'])): echo h($_POST['username']); endif; ?>" class="textbox" maxlength=24 name="username" id="username" type="text">
				<?=isset($errMsg['username'])?'<div class="err-msg">'.join("<br />", $errMsg['username'])."</div>":"" ?>
					<span class="description"> 注册后无法更改！英文数字或下划线，最长24，如：witpn,  xingxing，不区分大小写</span><br />
					<span style="font-size: 85%; line-height: 2.3em;">个人主页：http://www.witpn.com/people/<span class="url-name"></span></span>
 				</td>
			</tr>
 			<tr>
				<th><label for="email" >Email</label></th>
				<td>
					<input autocomplete="off" value="<?php if(isset($_POST['email'])): echo h($_POST['email']); endif; ?>" size="30" class="textbox" name="email" maxlength=40 id="email" type="text">
					<?php if (isset($errMsg['email']) && !empty($errMsg['email'])):  echo "<div class='err-msg'>" . join("<br />", $errMsg['email']) . "</div>"; endif; ?>
					
					<span class="description">如：witpn@gmail.com，</span>
 				</td>
			</tr>
			<tr>
 				<th><label for="password">密码</label></th>
				<td><input name="password" id="password" class="textbox" maxlength=40 value="<?php if(isset($_POST['password'])): echo h($_POST['password']); endif; ?>" size="26" type="password">
					<?=isset($errMsg['password'])?'<div class="err-msg">'.join("<br />", $errMsg['password']).'</div>':"" ?>
					<span class="description">区分大小写！推荐长度在6~32</span>
				</td>
 			</tr>
			<tr>
 				<th><label for="confirmPassword">再次输入密码</label></th>
 				<td><input name="confirmPassword" id="confirmPassword" class="textbox" maxlength=40 size="26" value="<?php if(isset($_POST['confirmPassword'])): echo h($_POST['confirmPassword']); endif; ?>" type="password">
 					<?=isset($errMsg['confirmPassword'])?'<div class="err-msg">'.join("<br />", $errMsg['confirmPassword']).'</div>':"" ?>
 				</td>
 			</tr>
	</table>
 		<br />
		<div class="sbmit">
		     
			<button style="margin-top:10px;" name="submit" type="submit">注册</button> 我们会向您发送激活邮件，激活成功后方能注册完成。<br />
		</div>
	
</form>
</div>
<?php endif;?>
<?php $this->_endblock(); ?>

